package com.support.android.myapp3.acitivty;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;

import com.support.android.myapp3.R;

import butterknife.BindView;
import per.goweii.actionbarex.ActionBarEx;
import per.goweii.actionbarex.SimpleActionBar;
import per.goweii.actionbarex.listener.OnLeftImageClickListener;
import per.goweii.actionbarex.listener.OnRightImageClickListener;

public abstract class BaseActionExActivity extends BaseActivity  {

//    @BindView(R.id.simple_action_bar_ex)
    public SimpleActionBar mTitleBar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mTitleBar = (SimpleActionBar)findViewById(R.id.simple_action_bar_ex);
        mTitleBar.setOnLeftImageClickListener(new OnLeftImageClickListener() {
            @Override
            public void onClick() {
                finish();
            }
        });

        mTitleBar.setOnRightImageClickListener(new OnRightImageClickListener() {
            @Override
            public void onClick() {
                titleRightClick();
            }
        });
    }

    public void titleRightClick(){

    }

}
